//安装vuex依赖 ：npm i vuex@3.2.0 
import Vue from "vue";

import Vuex from "vuex";

Vue.use(Vuex);

const store = new Vuex.Store({
    state:{
        token:"",
    },
    mutations:{
        changeToken(state, payload) {
            state.token = payload;
          },
    }
});

export default store;